package com.bort.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bort.system.info.Business;
import com.bort.system.model.TGameLog;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface TGameLogMapper extends BaseMapper<TGameLog> {

    int deleteByPrimaryKey(Integer id);
    int insertSelective(TGameLog record);
    TGameLog selectByPrimaryKey(Integer id);
    int updateByPrimaryKeySelective(TGameLog record);
    int updateByPrimaryKey(TGameLog record);

    void renewLastTag(@Param("deskId") Integer id);

    List<TGameLog> getLogList(@Param("map") Map<String, Object> map, Page<TGameLog> pager);
    List<TGameLog> getLogList(@Param("map") Map<String, Object> map);

    Map<String, Object> dataCount(@Param("map") Map<String, Object> map);

    List<Business> countHomeTopData(@Param("map") Map<String, Object> map);
}